<!doctype html>
<html>
<head>
    <meta charset="UTF-8">
    <title>首次会议------会议纪要</title>

    <!--公用样式-->
    <link rel="stylesheet" type="text/css" href="${re.contextPath}/plugin/common/css/comment.css"/>
    <!--页面样式-->
    <link rel="stylesheet" type="text/css" href="${re.contextPath}/plugin/common/css/style.css"/>
    <!--Layui-->
    <link rel="stylesheet" href="${re.contextPath}/plugin/layui/css/layui.css" media="all"/>
    <!--extended-->
    <link rel="stylesheet" type="text/css" href="${re.contextPath}/plugin/common/css/extended.css"/>
    <!--公用样式JS-->
    <script type="text/javascript" src="${re.contextPath}/plugin/jquery/jquery-3.2.1.min.js"></script>
    <script type="text/javascript" charset="utf-8" src="${re.contextPath}/plugin/common/js/comment.js"></script>
    <script type="text/javascript" charset="utf-8" src="${re.contextPath}/plugin/common/js/jquery.boot.js"></script>
    <script type="text/javascript" src="${re.contextPath}/plugin/layui/layui.js" charset="utf-8"></script>
    <script type="text/javascript" src="${re.contextPath}/plugin/tools/tool.js"></script>
    <script type="text/javascript" src="${re.contextPath}/pageoffice.js" id="po_js_main"></script>
</head>
<style>
    .windows {
        background-color: #f8f8f8;
    }

    .popUp {
        width: 90%;
    }

</style>

<body>

<!--监理印章使用授权书-->
<div class="windows">
    <div class="popUp whitebg">
        <div class="popUpTitle ft24 bold">会议纪要</div>
        <div class="clearfix mt10">
            <span class="fl">SDZZ-QR014</span>
            <span class="fr">编号：HYJY-${orderCode}</span>
        </div>
        <div class="popUpBox book">
            <form action="" class="layui-form addform">
                <div class="popUpBox">
                    <table>
                        <tr>
                            <td style="border: 1px solid #CCCCCC;">工程名称</td>
                            <td style="border: 1px solid #CCCCCC;">
                                <input type="hidden" name="spfPrjid" value="${spf_prjid}">
                                <input type="hidden" name="fileInd" value="${ind}">
                                <input type="hidden" name="spfStaid" value="${spf_staid}">
                                <input type="hidden" name="spfMilid" value="${spf_milid}">
                                <input type="hidden" name="projectName" value="${pdto.projectName}">
                                <input type="hidden" name="spfFilecode" value="${spfFilecode}">
                                <input type="hidden" name="bfcId" value="17">
                                <input type="hidden" name="fbCode" value="${fbCode}">
                                <input type="hidden" name="pcId" value="${pcId}">
                                <input type="hidden" name="orderCode" value="${orderCode}">
                                <input type="hidden" name="wjNum" value="${wjNum}">
                                <input type="text" name="spfF1"  value="${pdto.projectName}"
                                       lay-verify="spfF1"
                                       style="width: 95%;">
                            </td>
                        </tr>
                        <tr>
                            <td>日期</td>
                            <td><input type="text"  name="spfF2" id="spfF2" lay-verify="spfF2" class="layui-input"></td>
                        </tr>
                        <tr>
                            <td>业主单位</td>
                            <td><input type="text" name="spfF3" lay-verify="spfF3"
                                       value="${pdto.owerCompany}"></td>
                        </tr>
                        <tr>
                            <td>监理单位</td>
                            <td><input type="text" name="spfF4" lay-verify="spfF4"
                                       value="${pdto.supervisorCompanyName}"></td>
                        </tr>
                        <tr>
                            <td>承建单位</td>
                            <td>
                                <input type="text" name="spfF5" lay-verify="spfF5" value="${cj}">
                            </td>
                        </tr>
                        <tr>
                            <td>时 间</td>
                            <td>
                                <input type="text" name="spfF6" id="spfF6" lay-verify="spfF6" style="width: 20%;">
                                <span>至</span>
                                <input type="text" name="spfF7" id="spfF7" lay-verify="spfF7" style="width: 20%;">
                            </td>
                        </tr>
                        <tr>
                            <td>地 点</td>
                            <td><input type="text"  name="spfF8" lay-verify="spfF8"   ></td>

                        </tr>
                        <tr>
                            <td>业 主 单 位</td>
                            <td><input type="text" name="spfF9" lay-verify="spfF9"
                                       value="${pdto.owerCompany}"></td>
                        </tr>
                        <tr>
                            <td>[嘉宾/专家]</td>
                            <td><input type="text"  name="spfF10"
                                ></td>
                        </tr>
                        <tr>
                            <td>监 理 单 位</td>
                            <td><input type="text" placeholder="监理单位" name="spfF11" lay-verify="spfF11"
                                       value="${pdto.supervisorCompanyName}"></td>
                        </tr>
                        <tr>
                            <td>承 建 单 位</td>
                            <td><input type="text" name="spfF12" lay-verify="spfF12"  value="${cj}" ></td>
                        </tr>
                        <tr>
                            <td>[其他参会]</td>
                            <td><input type="text"  name="spfF13" lay-verify="spfF13"   ></td>

                        </tr>
                        <tr>
                            <td>会议议题</td>
                            <td><input type="text" name="spfF14" lay-verify="spfF14" placeholder="[注明：项目启动会/项目例会/项目调度会/专题讨论会……]">
                            </td>
                        </tr>
                        <tr>
                            <td>主要内容</td>
                            <td>
                                <textarea  name="spfF15" lay-verify="spfF15"data-options="validType:'length[1,5000]'" onkeyup="javascript:setShowLength1(this,'ch_name1')">（客观记录参会各方观点，并有明确会议结论）</textarea>
                                <span class="abs limitfont"
                                      style="color: #ccc;float:left;margin-left: 3%;"
                                      id="ch_name1">已输入0/5000</span>
                            </td>
                        </tr>
                    </table>
                </div>
                <div class="popUpBtn center">
                    <button type="button" class="blue bgnone close">关闭</button>
                    <button type="button" class="bluebg white" lay-submit lay-filter="submit">提交</button>
                </div>
            </form>
        </div>
    </div>
</div>


<script>
    var layer;
    var form;
    var laydate;
    layui.use(['form', 'laydate', 'layer'], function () {
        layer = layui.layer;
        form = layui.form;
        laydate = layui.laydate;
        // 日期
        laydate.render({
            elem: '#spfF2',
            value: new Date(),
            trigger: 'click',
            format: 'yyyy年MM月dd日'
        });

        laydate.render({
            elem: '#spfF6',
            type: 'time',
            trigger: 'click',
            value: '08点00分',
            format: 'HH点mm分'
        });
        laydate.render({
            elem: '#spfF7',
            type: 'time',
            trigger: 'click',
            format: 'HH点mm分',
            value: '13点00分',
            done: function (value, date) {
                var startTime = $("#spfF6").val();
                if (startTime > value) {
                    layer.msg("结束时间不能早于开始时间！");
                    return;
                }
            }
        });
        // 表单校验
        $('form').initVerify(form);
        //监听提交
        form.on('submit(submit)', function (data) {
            layerAjax('/supervisor/projectManager/addFormFile', data.field, '', function (d) {
                if (d.flag == true) {
                    var spfId = d.data.spfId;// fmid
                    var fpid = d.data.fpid;// fpid
                    POBrowser.openWindowModeless('/sys/office/openword?ft=2&fmid=' + spfId + '&fpid=' + fpid, 'width=1200px;height=800px;', '{}')
                } else {
                    layer.msg(d.msg, {icon: 2});
                }
                console.log(d);
            });
            return false;

        });

        $('.close').click(function () {
            var index = parent.layer.getFrameIndex(window.name);
            parent.layer.close(index);
        });
        form.render();


    });

    //1000字验证
    function setShowLength1(obj,id){
        var remain = obj.value.length;
        if(remain>5000){
            $("#"+id).html( "已输入"+remain+"/5000").css("color","#FF0000");
            $("#"+id).removeClass("text-gray-6");
        }else{
            $("#"+id).html( "已输入"+remain+"/5000").css("color","#ccc");
            $("#"+id).addClass("text-gray-6");
        }
    }

</script>


<!-- 底部结束 -->
</body>
</html>
